/*
 * @Author: pengtianrui 2276608413@qq.com
 * @Date: 2024-08-26 16:04:28
 * @LastEditors: yuanchenxi 836909158@qq.com
 * @LastEditTime: 2025-02-11 16:54:34
 * @FilePath: \SGFEM\DataStructure\FEM\Load\include\PLOAD2Data.h
 */
#pragma once
#include "DataStructure/Common/DataStructureExport.h"
#include "DataStructure/Common/DataStructureNamespace.h"
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Common/SetBase.h"
#include "DataStructure/Input/Load/LoadTypes.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN
struct DECLSPEC PLOAD2Data : public SetBase
{
    SG::DataStructure::Common::Real m_P        = 0.0;  ///< 载荷值
    SG::DataStructure::Common::Id   m_eId      = 0;    ///< 单元Id
    SG::DataStructure::Common::Id   m_domainId = 0;
    static SG::DataStructure::FEM::LoadType GetType ()
    {
        return SG::DataStructure::FEM::LoadType::LOAD_PLOAD2;
    };
};
using PLOAD2Array = std::vector<SG::DataStructure::FEM::PLOAD2Data>;
DECLSPEC bool operator== (const PLOAD2Data& a, const PLOAD2Data& b);
SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE